package com.wang.service.impl;

import com.wang.dao.UserProfileMapper;
import com.wang.domain.UserProfile;
import com.wang.service.IUserProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wangyandong
 * @date 2020/1/31 22:16
 */
@Service
public class UserProfileServiceImpl implements IUserProfileService {

    @Autowired
    private UserProfileMapper userProfileMapper;

    @Override
    public UserProfile getById(Integer id) {
        if(id == null){
            return null;
        }
        return userProfileMapper.selectByPrimaryKey(id);
    }
}
